#ifndef PIECHART_H
#define PIECHART_H

#include <QWidget>
#include <QtCharts>
#include <QPieSlice>
QT_CHARTS_USE_NAMESPACE

namespace Ui {
class Piechart;
}

class Piechart : public QWidget
{
    Q_OBJECT

public:
    explicit Piechart(QWidget *parent = nullptr);
    ~Piechart();

    QPieSlice*pieSlice;
    QPieSeries *series;
signals:
    void back();

private slots:
    void on_create_clicked();

    void on_add_clicked();

    void on_deleteone_clicked();

    void on_PieSliceHighlight(bool);
    void on_clear_clicked();

    void on_pushButton_clicked();

private:
    Ui::Piechart *ui;
};

#endif // PIECHART_H
